import jwt3

encoded = jwt3.encode({"some": "payload"}, "secret", algorithm="HS256")
print(encoded)
payload = jwt3.decode(encoded, "secret", algorithms=["HS256"])
print(payload)